package com.example.servlet;

import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import java.io.IOException;

import com.example.model.Dog;

public class MyServlet extends HttpServlet{
	protected void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException{
		Dog dog = (Dog)getServletContext().getAttribute("dog");
		response.setContentType("text/html");
		response.getWriter().print(dog);
	}
}
